package cn.gson.springboot.model.pjos;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * 出差表日志表
 */
@Table(name = "evection_record", schema = "springboot", catalog = "")
@Entity
public class EvectionRecord {
    private int cordId;	            //出差日志id
    private Integer evetId;	        //出差id
    private Timestamp cordDate;		//发表时间
    private String cordContent;		//内容
    private Emp empByEmployeesId;   //发表人

    public EvectionRecord() {

    }

    @Id
    @Column(name = "cord_id")
    public int getCordId() {
        return cordId;
    }

    public void setCordId(int cordId) {
        this.cordId = cordId;
    }

    @Basic
    @Column(name = "evet_id")
    public Integer getEvetId() {
        return evetId;
    }

    public void setEvetId(Integer evetId) {
        this.evetId = evetId;
    }

    @Basic
    @Column(name = "cord_date")
    public Timestamp getCordDate() {
        return cordDate;
    }

    public void setCordDate(Timestamp cordDate) {
        this.cordDate = cordDate;
    }

    @Basic
    @Column(name = "cord_content")
    public String getCordContent() {
        return cordContent;
    }

    public void setCordContent(String cordContent) {
        this.cordContent = cordContent;
    }

    @ManyToOne
    @JoinColumn(name = "cord_empid", referencedColumnName = "employees_id")
    public Emp getEmpByEmployeesId() {
        return empByEmployeesId;
    }

    public void setEmpByEmployeesId(Emp empByEmployeesId) {
        this.empByEmployeesId = empByEmployeesId;
    }

}
